package com.skyable.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.skyable.auth.entity.SysUser;
import com.skyable.common.common.ServiceResult;

/**
 * @author GaoYuan
 * @title: IUserService
 * @projectName spring-cloud-demo
 * @description: TODO
 * @date 2021/4/613:08
 */
public interface IUserService extends IService<SysUser> {

    /**
     * 新增用户
     * @param sysUser
     * @return
     */
    ServiceResult<SysUser> createUser(SysUser sysUser);

    /**
     * 根据用户名查询用户信息
     * @param username
     * @return
     */
    ServiceResult<SysUser> getUserByUserName(String username);

    /**
     * 根据手机号查询用户信息
     * @param phone
     * @return
     */
    ServiceResult<SysUser> getUserByPhoneNum(String phone);
}
